package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * ClassName: OrderService
 * Package: com.atguigu.yygh.order.service
 *
 * @Date: 2021/8/26 13:00
 * @author: 浪漫
 * @Description:
 */
public interface OrderService extends IService<OrderInfo> {
    // 生成订单
    Long saveOrder(String scheduleId, Long patientId);

    /**
     * 获取订单详情
     */
    OrderInfo getOrder(String orderId);

    /**
     * 分页列表
     */
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);


    //取消预约
    Boolean cancelOrder(Long orderId);

    //就诊通知
    void patientTips();

    //预约统计
    Map<String,Object> getCountMap(OrderCountQueryVo orderCountQueryVo );

}
